package com.daxia.bumall.dto;

import org.apache.commons.lang3.StringUtils;

import com.daxia.bumall.model.User;

public class UserDTO extends User {
	
    /**
     * 推荐奖励分券
     */
    private Long recAwardCoupon;
    private String levelName;

    /**
     * 动态数，订单数，作品数（Design)，收藏数(DesignCollection)
     */
    private long timelineNum;           // 动态数
    private long orderNum;              // 订单数
    private long designNum;             // 作品数
    private long designCollectionNum;   // 作品数

    private String searchTerm;
    
    private boolean seedUser; //是否是种子用户
    
    private String displayName; //显示
    
    private boolean excludeSelf;
    private Long excludeUserId;

    private Boolean querySubacount;
    
    public Long getRecAwardCoupon() {
        return recAwardCoupon;
    }

    public void setRecAwardCoupon(Long recAwardCoupon) {
        this.recAwardCoupon = recAwardCoupon;
    }

    public String getLevelName() {
        return levelName;
    }

    public void setLevelName(String levelName) {
        this.levelName = levelName;
    }

    public long getTimelineNum() {
        return timelineNum;
    }

    public void setTimelineNum(long timelineNum) {
        this.timelineNum = timelineNum;
    }

    public long getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(long orderNum) {
        this.orderNum = orderNum;
    }

    public long getDesignNum() {
        return designNum;
    }

    public void setDesignNum(long designNum) {
        this.designNum = designNum;
    }

    public long getDesignCollectionNum() {
        return designCollectionNum;
    }

    public void setDesignCollectionNum(long designCollectionNum) {
        this.designCollectionNum = designCollectionNum;
    }

	public String getSearchTerm() {
		return searchTerm;
	}

	public void setSearchTerm(String searchTerm) {
		this.searchTerm = searchTerm;
	}

	public boolean getSeedUser() {
		return seedUser;
	}

	public void setSeedUser(boolean seedUser) {
		this.seedUser = seedUser;
	}

	public String getDisplayName() {
		String ret = "";
		if (StringUtils.isBlank(ret) && StringUtils.isNotBlank(super.getRealName())) {
			ret += super.getRealName();
		}
		if (StringUtils.isBlank(ret) && StringUtils.isNotBlank(super.getNickName())) {
			ret += super.getNickName();
		}
		if (StringUtils.isBlank(ret) && StringUtils.isNotBlank(super.getMobile())) {
			ret += super.getMobile();
		}
		if (StringUtils.isBlank(ret) && StringUtils.isNotBlank(super.getUsername())) {
			ret += super.getUsername();
		}
		
		return ret;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	public boolean isExcludeSelf() {
		return excludeSelf;
	}

	public void setExcludeSelf(boolean excludeSelf) {
		this.excludeSelf = excludeSelf;
	}

	public Long getExcludeUserId() {
		return excludeUserId;
	}

	public void setExcludeUserId(Long excludeUserId) {
		this.excludeUserId = excludeUserId;
	}

	public Boolean getQuerySubacount() {
		return querySubacount;
	}

	public void setQuerySubacount(Boolean querySubacount) {
		this.querySubacount = querySubacount;
	}
	
	
}
